import java.util.List;

public class MovieService {
    private MovieDao movieDao = new MovieDaoImpl();

    // 添加影片
    public boolean addMovie(Movie movie) {
        return movieDao.addMovie(movie);
    }

    // 查询影片
    public List<Movie> queryMovies(String name, String director, String actor) {
        return movieDao.queryMovies(name, director, actor);
    }

    // 获取所有影片
    public List<Movie> getAllMovies() {
        return movieDao.getAllMovies();
    }
}
    